package com.lin.cloud.disk.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * 部门内部实体类
 * @author ljc
 * @date 2020/12/29 21:57
 */
@Data
public class DepartmentDTO {

    @ApiModelProperty(value = "部门id", name = "id")
    private Long id;

    @ApiModelProperty(value = "部门名称", name = "departmentName")
    private String departmentName;

    @ApiModelProperty(value = "部门描述", name = "departmentDesc")
    private String departmentDesc;

    @ApiModelProperty(value = "父ID", name = "parentId")
    private Long parentId;

    @ApiModelProperty(value = "子部门", name = "children")
    private List<DepartmentDTO> children = Collections.emptyList();

    @ApiModelProperty(value = "子部门总数量", name = "childrenTotalCount")
    private Integer childrenTotalCount = 0;

}
